﻿<%@ Page Language="C#" MasterPageFile="~/ManageCenter/ManageMaster.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="ManageCenter_Search" Title="住房保障管理中心" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
        <tr>
            <td bgcolor="#d5f3ff" height="65">
                <table align="center" border="0" cellpadding="0" cellspacing="0" width="60%">
                    <tr>
                        <td height="32">
                            <img height="30" src="../Images/Main_13.jpg" width="73" /></td>
                        <td>
                            关键字：</td>
                        <td>
                            <asp:TextBox ID="txbcontent" runat="server"></asp:TextBox></td>
                        <td>
                            搜索范围：</td>
                        <td style="width: 55px">
                            <asp:DropDownList ID="ddlsearch" runat="server">
                                <asp:ListItem>编号</asp:ListItem>
                                <asp:ListItem>姓名</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="btnsearch" runat="server" OnClick="btnsearch_Click" Text="搜索" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="3%" height="33" align="center"><img src="../Images/Main_14.jpg" width="5" height="9"/></td>
            <td width="97%" class="lanse">
                &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                选择街道：<asp:DropDownList ID="ddlstreet" runat="server" Width="75px" AutoPostBack="True" OnSelectedIndexChanged="ddlstreet_SelectedIndexChanged">
                    <asp:ListItem Value="%">所有</asp:ListItem>
                    <asp:ListItem>江厦</asp:ListItem>
                    <asp:ListItem>月湖</asp:ListItem>
                    <asp:ListItem>南门</asp:ListItem>
                    <asp:ListItem>鼓楼</asp:ListItem>
                    <asp:ListItem>西门</asp:ListItem>
                    <asp:ListItem>白云</asp:ListItem>
                    <asp:ListItem>段唐</asp:ListItem>
                    <asp:ListItem>望春</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
    </table>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
        <tr>
            <td style="height: 12px">
                <asp:GridView ID="gvshowbysearch" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle"
                    EmptyDataText="列表为空" OnRowCommand="gvshowbysearch_RowCommand" OnRowDataBound="gvshowbysearch_RowDataBound"
                    Width="100%" AllowPaging="True" PageSize="15">
                    <Columns>
                        <asp:TemplateField HeaderText="编号">
                            <ItemTemplate>
                                <%#string.IsNullOrEmpty(Eval("apply_longid").ToString())?Eval("apply_noid"):Eval("apply_longid")%>
                            </ItemTemplate>
                            <ItemStyle Width="13%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="街道">
                            <ItemTemplate>
                                <%#Eval("apply_street") %>
                            </ItemTemplate>
                            <ItemStyle Width="12%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="详情">
                            <ItemTemplate>
                                申请人：<%#(Eval("apply_name"))%>
                                &nbsp; &nbsp; 申请时间：<%#Convert.ToDateTime(Eval("apply_time")).ToString("yyyy年MM月dd日")%>
                                <br />
                                地址:<%#Eval("apply_address") %>
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <%#GetSituation(Eval("apply_checkstate").ToString(), Eval("apply_passed").ToString())%>
                            </ItemTemplate>
                            <ItemStyle Width="15%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlkview" Target="_blank" NavigateUrl='<%# "../PublicContent/ViewApply.aspx?applyid="+Eval("apply_id")+"&id="+Eval("apply_noid") %>' runat="server">查看</asp:HyperLink>
                                <asp:HyperLink ID="hlkupdate" NavigateUrl='<%#"../houseKeep/ModifyApply.aspx?id="+Eval("apply_noid")+"&applyid="+Eval("apply_id") %>' Visible='<%#Convert.ToInt32(Eval("apply_passed").ToString())>2?true:false %>' Target="_blank" runat="server">修改</asp:HyperLink>
                                <asp:HyperLink ID="hlkchange" runat="server" NavigateUrl='<%#"../HouseKeep/AdjustApply.aspx?noid="+Eval("apply_noid")+"&longid="+Eval("apply_longid") %>' Target="_blank" Visible='<%#Eval("apply_passed").ToString()=="3"?true:false %>'>调整</asp:HyperLink>
                            </ItemTemplate>
                            <ItemStyle Width="20%" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle CssClass="FooterStyle" />
                    <RowStyle CssClass="RowStyle" />
                    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                    <PagerStyle CssClass="PagerStyle" />
                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                    <HeaderStyle CssClass="HeaderStyle" />
                    <EditRowStyle CssClass="EditRowStyle" />
                    <AlternatingRowStyle CssClass="AltRowStyle" />
                    <PagerSettings Visible="False" />
                </asp:GridView>
                <div style="text-align:center; font-size:15px">
                    <br />
                    <asp:Button ID="btnfirstpage" runat="server" Text="首页" OnClick="btnfirstpage_Click" />
                    <asp:Button ID="btnprepage" runat="server" OnClick="btnprepage_Click" Text="上一页" />
                    <asp:Button ID="btnnextpage" runat="server" OnClick="btnnextpage_Click" Text="下一页" />
                    <asp:Button ID="btnlastpage" runat="server" Text="尾页" OnClick="btnlastpage_Click" />&nbsp;
                    转跳到：<asp:DropDownList ID="ddlpages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlpages_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <br />
                </div>
            </td>
        </tr>
    </table>
</asp:Content>

